style.scss 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  1. #postView {
  2. position: relative;
  3. padding: 25px 32px 32px 32px;
  4. min-width: 270px;
  5. max-width: 1920px;
  6. margin: 0 auto;
  7. section {
  8. // 제목
  9. &.subject {
  10. font-size: 1.5rem;
  11. font-weight: 600;
  12. margin-bottom: 10px;
  13. }
  14. // 상단
  15. &.attribution {
  16. display: flex;
  17. flex-direction: row;
  18. flex-wrap: nowrap;
  19. align-items: center;
  20. div:first-child {
  21. flex-grow: 0;
  22. padding-right: 20px;
  23. }
  24. div:last-child {
  25. display: grid;
  26. grid-template-columns: auto auto;
  27. grid-template-rows: repeat(2, 1fr);
  28. grid-template-areas: "writer-info post-date"
  29. "post-info functions";
  30. align-items: center;
  31. flex-grow: 1;
  32. column-gap: 0;
  33. row-gap: 10px;
  34. article {
  35. &.writer-thumb {
  36. grid-area: writer-thumb;
  37. > img {
  38. width: 100%;
  39. max-width: 92px;
  40. object-fit: cover;
  41. }
  42. }
  43. &.writer-info {
  44. grid-area: writer-info;
  45. > ul {
  46. li {
  47. &:nth-of-type(2) {
  48. align-self: center;
  49. font-size: 0.875rem;
  50. }
  51. }
  52. }
  53. }
  54. &.post-info {
  55. grid-area: post-info;
  56. }
  57. &.post-date {
  58. grid-area: post-date;
  59. text-align: right;
  60. }
  61. &.functions {
  62. grid-area: functions;
  63. justify-self: flex-end;
  64. }
  65. > ul {
  66. display: flex;
  67. flex-wrap: wrap;
  68. column-gap: 10px;
  69. row-gap: 0;
  70. list-style: none;
  71. li {
  72. position: relative;
  73. // 가운데 점 추가
  74. &::after {
  75. content: '·';
  76. margin-left: 10px;
  77. color: var(--text-muted);
  78. }
  79. // 마지막 li는 점 숨김
  80. &:last-child::after {
  81. content: '';
  82. margin: 0;
  83. }
  84. a, button {
  85. color: var(--text-link);
  86. text-decoration: none;
  87. &:hover {
  88. text-decoration: underline;
  89. color: var(--text-link-hover);
  90. }
  91. }
  92. }
  93. }
  94. }
  95. }
  96. @media (max-width: 1140px) {
  97. div:last-child {
  98. grid-template-columns: auto 1fr;
  99. grid-template-rows: auto auto auto auto;
  100. grid-template-areas: "writer-thumb writer-info"
  101. "writer-thumb post-info"
  102. "writer-thumb post-date"
  103. "writer-thumb functions";
  104. align-items: center;
  105. grid-auto-rows: auto;
  106. row-gap: 2px;
  107. column-gap: 0;
  108. article {
  109. &.post-date {
  110. text-align: left;
  111. }
  112. &.functions {
  113. justify-self: start;
  114. padding-top: 4px;
  115. }
  116. }
  117. }
  118. }
  119. }
  120. &.content {
  121. min-height: 300px;
  122. display: flex;
  123. flex-direction: column;
  124. article {
  125. font-size: 1.063rem;
  126. line-height: 1.25;
  127. // 본문 내용
  128. &:first-of-type {
  129. flex-grow: 1;
  130. // 첨부 파일
  131. section.file-embed {
  132. display: inline-block;
  133. width: max-content;
  134. max-width: 100%;
  135. padding: 5px 40px;
  136. border: 1px solid var(--border-strong);
  137. border-radius: 5px;
  138. background: var(--bg-elevated);
  139. margin: 5px 0;
  140. box-sizing: border-box;
  141. .file-icon svg {
  142. width: 19px;
  143. height: 19px;
  144. display: inline-block;
  145. vertical-align: sub;
  146. padding-right: 5px;
  147. }
  148. &.image-style-align-left {
  149. margin-left: 0;
  150. margin-right: auto;
  151. }
  152. &.image-style-align-center {
  153. display: block;
  154. margin-left: auto;
  155. margin-right: auto;
  156. }
  157. &.image-style-align-right {
  158. margin-left: auto;
  159. margin-right: 0;
  160. }
  161. &:hover {
  162. background-color: var(--bg-subtle);
  163. border-color: var(--text-link-hover);
  164. cursor: pointer;
  165. }
  166. }
  167. p a {
  168. color: var(--text-link);
  169. text-decoration: none;
  170. &:hover,
  171. &:focus {
  172. text-decoration: underline;
  173. color: var(--text-link-hover);
  174. }
  175. }
  176. }
  177. // 태그
  178. &:last-of-type {
  179. span {
  180. padding-right: 6px;
  181. a {
  182. color: var(--text-link);
  183. text-decoration: none;
  184. &:hover {
  185. text-decoration: underline;
  186. color: var(--text-link-hover);
  187. }
  188. }
  189. }
  190. }
  191. }
  192. }
  193. &.controls {
  194. display: flex;
  195. justify-content: space-between;
  196. align-items: center;
  197. gap: 0;
  198. article {
  199. display: flex;
  200. flex-direction: row;
  201. flex-wrap: nowrap;
  202. gap: 7px;
  203. }
  204. }
  205. }
  206. hr {
  207. margin: 14px 0;
  208. }
  209. }
  210. // 인쇄 설정
  211. @media print {
  212. body {
  213. /* 인쇄할 요소만 보이게 */
  214. #main, #container {
  215. visibility: visible;
  216. display: block;
  217. all: unset;
  218. width: 100%;
  219. height: auto;
  220. position: static;
  221. padding: 0;
  222. margin: 0 auto;
  223. overflow: visible;
  224. }
  225. #header, #ticker, #footer, #aside {
  226. display: none;
  227. visibility: hidden;
  228. }
  229. html, body {
  230. width: 100%;
  231. height: auto;
  232. overflow: visible;
  233. }
  234. }
  235. }